﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    double harmData[51]={0,57.7,0,1,0,2,0,3,0,4,0,5};
    ui->bar_1->setData(harmData,51);

    float data1[5]={10,20,30,20,10};
    float data2[5]={2,2,2,2,2};
    float data3[5]={-10,-20,-30,-20,-10};
    ui->wave_1->setData(data1,data2,data3,5);

    float UaIaAng=30;
    float UaIbAng=90;
    float UaIcAng=120;
    float UaUbAng=60;
    float UaUcAng=150;
    float UbIbAng=180;
    float UcIcAng=240;

    ui->phasor_1->setData(4,UaIaAng,UaIbAng,UaIcAng,UaUbAng,UaUcAng,UbIbAng,UcIcAng);
}

MainWindow::~MainWindow()
{
    delete ui;
}
